package com.atguigu.pratice;

import java.util.Scanner;

public class TheStrongJudgement {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String s=scanner.next();
        int lengthScore=0; //密码长度
        int alphaScore=0; //字母个数
        int numberScore=0; //数字个数
        int characterScore=0; //符号个数
        int score=0; //奖励分
        //长度分
        if(s.length()<=4){
            lengthScore=5;
        }else if(s.length()>=5&&s.length()<=7){
            lengthScore=10;
        }else if(s.length()>=8) {
            lengthScore = 25;
        }
        //字母分
        //先计算字母个数
        int tmp=0;
        int num=0;
        for(int i=0;i<s.length();i++){
            char ch=s.charAt(i);
            if(Character.isLetter(ch)){
                tmp++;
                if(Character.isUpperCase(ch)){
                    num++;
                }
            }
        }
        boolean flag=false;
        if(tmp==0) {
            alphaScore = 0;
        }else if(tmp!=0){
            if(num==0||num==tmp){
                flag=true;
            }
            alphaScore=20;
        }
        if(flag){
            alphaScore=10;
        }
        tmp=0;
        //计算数字分
        for(int i=0;i<s.length();i++){
            char ch=s.charAt(i);
            if(Character.isDigit(ch)){
                tmp++;
            }
        }
        if(tmp==0){
            numberScore=0;
        }else if(tmp==1){
            numberScore=10;
        }else if(tmp>1){
            numberScore=20;
        }
        //计算符号分
        tmp=0;
        for(int i=0;i<s.length();i++){
            int ch=(int)s.charAt(i);
            if((ch>=0x21&&ch<=0x2F)||(ch>=0x3A&&ch<=0x40)||(ch>=0x5B&&ch<=0x60)||(ch>=0x7B&&ch<=0x7E)){
              tmp++;
            }
        }
        if(tmp==0){
            characterScore=0;
        }else if(tmp==1){
            characterScore=10;
        }else if(tmp>1){
            characterScore=25;
        }
        //计算奖励分
        if(alphaScore!=0&&numberScore!=0&&characterScore==0){
            score=2;
        }else if(alphaScore!=0&&numberScore!=0&&characterScore!=0&&(flag)){
            score=3;
        }else if(alphaScore!=0&&numberScore!=0&&(!flag)&&characterScore!=0){
            score=5;
        }
        int SumScore=lengthScore+numberScore+alphaScore+characterScore+score;
        if(SumScore>=0&&SumScore<25){
            System.out.println("Very_Weak");
        }else if(SumScore>=25&&SumScore<50){
            System.out.println("Weak");
        }else if(SumScore>=50&&SumScore<60){
            System.out.println("Average");
        }else if(SumScore>=60&&SumScore<70){
            System.out.println("Strong");
        }else if(SumScore>=70&&SumScore<80){
            System.out.println("Very_Strong");
        }else if(SumScore>=80&&SumScore<90){
            System.out.println("Security");
        }else if(SumScore>=90){
            System.out.println("Very_Security");
        }
    }
}
